﻿/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


/* load after build_application.js */

window.app.builders.HttpLogger || ( window.app.builders.HttpLogger = {} );
/**
  * @param {Object} service the service description of the according service on the host side
  */
window.app.builders.HttpLogger["2.0"] = function(service, service_descriptions)
{
  if (service_descriptions && "resource-manager" in service_descriptions)
  {
    return false;
  }

  var namespace = cls.HttpLogger && cls.HttpLogger["2.0"];
  var service_interface = window.services['http-logger'];
  if(service_interface)
  {
    new namespace.HTTPLoggerService();
    window.HTTPLoggerData = new namespace.HTTPLoggerData();
    namespace.RequestListView.prototype = ViewBase;
    new namespace.RequestListView('request_list', ui_strings.M_VIEW_LABEL_REQUEST_LOG, 'scroll');
    namespace.RequestListView.create_ui_widgets();
    return true;
  }
}
